package com.fangcun.mapper;

import java.util.List;

import com.fangcun.bean.admin.agent.response.AgentGoodsResponse;
import com.fangcun.entity.AgentGoods;

public interface AgentGoodsMapper {

	int deleteByPrimaryKey(Long id);

	int insert(AgentGoods record);

	int insertSelective(AgentGoods record);

	AgentGoods selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AgentGoods record);

	int updateByPrimaryKey(AgentGoods record);

	int updateForStatus(List<AgentGoods> record);

	/** 查询某代理商的 商品列表 **/
	List<AgentGoodsResponse> listForAdminByAgentId(AgentGoods request);

	AgentGoods selectByAgentIdAndGoodsId(AgentGoods goods);
}